<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客管理</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/me.css"> <!--引入自定义CSS样式-->
</head>
<body>
    <!--导航-->
    <nav class="ui inverted attached segment me-padded-tb-mini me-shadow-small"> <!--引入css样式-->
        <div class="ui container">
            <div class="ui inverted secondary menu stackable"><!--stackable可堆叠，解决手机访问-->
                <h2 class="ui teal header item">后台管理</h2> <!--item为menu中的一个条目-->
                <a href="#" class="active m-item item me-mobile-hide"><i class="home icon"></i>博客</a><!--href为超链接-->
                <a href="#" class="m-item item me-mobile-hide"><i class="idea icon"></i>分类</a><!--m-item，在JQuery里获取样式-->
                <a href="#" class="m-item item me-mobile-hide"><i class="tags icon"></i>标签</a>

                <div class="right m-item me-mobile-hide menu">
                    <div class="ui dropdown item">
                        <div class="text">
                            <img src="../../static/images/wechat.jpg" alt="" class="ui avatar image">
                            泽宝宝
                        </div>
                        <i class="dropdown icon"></i>
                        <div class="menu">
                            <a href="#" class="item">注销</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <a href="#" class="ui black icon button me-top-right me-mobile-show menu toggle"> <!--手机端菜单图标, menu toggle获取点击事件-->            <i class="sidebar icon"></i>
        </a>
    </nav>

    <!--二级导航-->
    <div class="ui attached pointing menu"> <!--active的就可以有小箭头-->
        <div class="ui container">
            <div class="right menu">
                <a href="#" class="item">发布</a>
                <a href="#" class="teal active item">列表</a>
            </div>

        </div>

    </div>
    <!--中间内容-->
    <div class="me-container-small me-padded-tb-large">
        <div class="container">
            <!--查询等的表单-->
            <form action="#" class="ui segment form" method="post"> <!--表单-->
                <div class="inline fields"> <!--inline 不充满整行-->
                    <!--标题-->
                    <div class="field">
                        <input type="text" name="title" placeholder="标题">
                    </div>
                    <!--类型下拉框-->
                    <div class="field">
                        <div class="ui selection dropdown"><!--选择式下拉框-->
                            <input type="hidden" name="type">
                            <i class="dropdown icon"></i>
                            <div class="default text">分类</div>
                            <div class="menu">
                                <div class="item" data-value="1">错误日志</div><!--data-value为传到后端的值-->
                                <div class="item" data-value="1">注册用户</div>
                            </div>
                        </div>
                    </div>
                    <!--recommend checkbox-->
                    <div class="field">
                        <input type="checkbox" id="recommend" name="recommend">
                        <label for="recommend">推荐</label>
                    </div>
                    <!--search button-->
                    <div class="field">
                        <button class="ui mini teal basic button"><i class="search icon"></i>搜索</button>
                    </div>
                </div>
            </form>

            <!--表格-->
            <table class="ui celled table"><!--celled加网格-->
                <thead>
                <tr>
                    <th></th>
                    <th>标题</th>
                    <th>类型</th>
                    <th>推荐</th>
                    <th>推荐更新时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>1</td>
                    <td>联系清单</td>
                    <td>认知升级</td>
                    <td>是</td>
                    <td>2020-02-20 21：34</td>
                    <td>
                        <a href="#" class="ui basic mini button teal">编辑</a>
                        <a href="#" class="ui basic mini button red">删除</a>
                    </td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>联系清单</td>
                    <td>认知升级</td>
                    <td>是</td>
                    <td>2020-02-20 21：34</td>
                    <td>
                        <a href="#" class="ui basic mini button teal">编辑</a>
                        <a href="#" class="ui basic mini button red">删除</a>
                    </td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>联系清单</td>
                    <td>认知升级</td>
                    <td>是</td>
                    <td>2020-02-20 21：34</td>
                    <td>
                        <a href="#" class="ui basic mini button teal">编辑</a>
                        <a href="#" class="ui basic mini button red">删除</a>
                    </td>
                </tr>
                </tbody>
                <tfoot><!--表底部-->
                    <tr >
                        <th colspan="6"><!--合并单元格-->
                            <div class="ui two column grid">
                                <div class="column">
                                    <div class="ui mini pagination menu "><!--分页菜单-->
                                        <a href="#" class="item">上一页</a>
                                        <a href="#" class="item">下一页</a>
                                    </div>
                                </div>
                                <div class="middle aligned column">
                                    <a href="#" class="ui mini middle aligned right floated teal basic button">新增</a>
                                </div>
                            </div>
                        </th>
                    </tr>
                </tfoot>
            </table>
        </div>
    </div>

    <!--底部footer-->
    <footer class="ui inverted vertical segment me-padded-tb-max"><!--vertical消除圆角，用attached好像也行-->
        <div class="ui center aligned container"><!--居中-->
            <div class="ui inverted divided grid stackable"><!--grid stackable默认均匀分成16份, divided分割线-->
                <div class="three wide column">
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../../static/images/wechat.jpg" class="ui rounded image" alt="" style="width: 110px"><!--alt规定图片无法显示时的替代文本-->
                        </div>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header me-text-space me-opacity-mini">最新博客</h4><!--标题-->
                    <div class="ui inverted link list">
                        <a href="#" class="item me-text-thin me-text-lined">用户故事</a>
                        <a href="#" class="item me-text-thin me-text-lined">用户故事</a>
                        <a href="#" class="item me-text-thin me-text-lined">用户故事</a>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header me-text-space me-opacity-mini">联系我</h4><!--标题-->
                    <div class="ui inverted link list">
                        <a href="#" class="item me-text-thin me-text-lined">Email: stg1205@163.com</a>
                        <a href="#" class="item me-text-thin me-text-lined">QQ: 1014922487</a>
                    </div>
                </div>
                <div class="seven wide column">
                    <h4 class="ui inverted header me-text-space me-opacity-mini">介绍</h4>
                    <p class="me-text-space me-text-thin me-text-lined me-opacity-mini">这是我的个人博客，啦啦啦啦啦啦拉拉拉啊拉啦阿拉</p>
                </div>
            </div>
            <div class="ui inverted section divider"></div>
            <p class="me-text-space me-opacity-tiny">Copyright</p>
        </div>

    </footer>
<script
        src="https://code.jquery.com/jquery-3.1.1.min.js"
        integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
        crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.js"></script>

    <script>
        $('.menu.toggle').click(function () {
            $('.m-item').toggleClass('me-mobile-hide');/*toggleClass，取反函数*/
        });

        $('.ui.dropdown').dropdown({
            on: 'hover' /*鼠标放上就触发*/
        });
    </script>
</body>
</html>